<titlemenu></titlemenu>
<div class="dj-list">
    <div class="dj-list-body">
        <div party-tree data-selectdzzdm="selectparams.selectdzzdm" data-selectdzzmc="selectparams.selectdzzmc"
             data-isshowxz="selectparams.isshowxz" data-zzfbtype="selectparams.zzfbType"
             data-defaultselected="selectparams.defaultselected" data-isunfold="selectparams.isunfold"></div>
        <div class="dj-list-content">
            <div class="card">
                <div activate-input activate-select class="header search-header">
                    <div fold-partytree data-isunfold="selectparams.isunfold"></div>
                    <div class="search-param-panel">
                        <div class="search-input">
                            <form class="form-horizontal">
                                <div class="row clearfix form-inline">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>当前选中组织</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <div class="input-group input-group-search">
                                                    <input name="selectdzzmc" type="text" style="min-width: 90px"
                                                           ng-model="selectparams.selectdzzmc" class="form-control"
                                                           ng-disabled="true"/>
                                                    <span class="input-group-addon"
                                                          ng-click="setisunfold()">选择</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 dj-label">
                                        <label>地址</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="pbrandName" class="form-control"
                                                       ng-keypress="($event.which === 13)?search():0"
                                                       ng-model="selectparams.addr"
                                                       type="text"
                                                       placeholder=""/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 dj-label">
                                        <label>使用范围</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <select name="creatType" ng-model="selectparams.useRange"
                                                        ng-change="search()"
                                                        class="form-control"
                                                        ng-options="type.dickey as type.dicvalue for type in useRangeList">
                                                    <option value="">--全部--</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="search-btn" style="margin-right: 20px;">
                            <div style="min-width: 13em">
                                <!--<span class="moreSpan" ng-click="isShowClick()" style='padding-right:2em;cursor:pointer;'>{{moreTxt}}<i class="material-icons" style="position: relative;top:7px;">{{isShow ? 'expand_less' : 'expand_more'}}</i></span>-->
                                <button
                                        class="btn btn-default1"
                                        ng-click="search()">查询
                                </button>
                                <button class="btn btn-default1 btn-reset"
                                        ng-click="reset()">重置
                                </button>

                            </div>
                        </div>
                    </div>
                    <div class="search-btn" style="margin-right: 20px;">
                        <div style="float: right">
                            <button role-permission-code="djPartyActivityRoomList.btnExcel" class="btn btn-default1"
                                    ng-click="exportData()">导出
                            </button>
                            <button role-permission-code="djPartyActivityRoomList.btnAdd" class="btn btn-default1"
                                    ng-click="addData()">新增
                            </button>
                        </div>
                    </div>
                </div>
                <div class="body">
                    <div class="zero-list-table-panel">
                        <div class="zero-source-table-div">
                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                                <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>所在党组织</th>
                                    <th>地址</th>
                                    <th>面积（平方）</th>
                                    <th>党员人数</th>
                                    <th>使用范围</th>
                                    <th>图片</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="it in dataList">
                                    <td scope="row" class="text-center">
                                        {{selectparams.pagesize*(selectparams.pageindex-1)+$index+1}}
                                    </td>
                                    <td>{{it.PARTYNAME}}</td>
                                    <td>{{it.ADDR}}</td>
                                    <td class="text-center">{{it.USEAREA}}</td>
                                    <td class="text-center">{{it.PCOUNT}}</td>
                                    <td class="text-center">{{it.USERANGENAME}}</td>
                                    <td class="text-center">
                                        <img ng-if="it.FILEID.length>0"
                                             data-toggle="modal" style="width: 90px;height:60px;"
                                             data-target="#showBigImg"   ng-src="../../api/home/showImg/{{it.FILEID}}"
                                             ng-click="showImg(it.FILEID)"/>
                                    </td>
                                </tr>
                                <tr ng-if="pageInfo.ptotal==0">
                                    <td colspan="7" style="text-align:center">暂无数据</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="zero-target-table-div">
                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                                <thead>
                                <tr>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="it in dataList" zero-table-height>
                                    <td class="text-center">
                                        <button
                                                class="btn td-btn bg-light-green waves-effect"
                                                ng-click="showData(it.PARTYACTIVITYROOMID)"
                                                title="查看">
                                            查看
                                        </button>
                                        <button
                                                role-permission-code="djPartyActivityRoomList.btnEdit"
                                                class="btn td-btn bg-light-green waves-effect"
                                                ng-click="editData(it.PARTYACTIVITYROOMID)"
                                                title="编辑">
                                            编辑
                                        </button>
                                        <button
                                                role-permission-code="djPartyActivityRoomList.btnDel"
                                                class="btn td-btn bg-light-green waves-effect"
                                                ng-click="deleteData(it.PARTYACTIVITYROOMID)"
                                                title="删除">
                                            删除
                                        </button>
                                        <!--DjResultMgList.btnDel-->
                                    </td>
                                </tr>
                                <tr ng-if="pageInfo.ptotal==0">
                                    <td colspan="1" style="text-align:center">无</td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <pagination data-pageindex="selectparams.pageindex" data-pagesize="selectparams.pagesize"
                                data-ptotal="pageInfo.ptotal"></pagination>
                </div>
            </div>
        </div>
        <div class="modal fade text-center" id="showBigImg" tabindex="-1" role="dialog">
            <div class="modal-dialog" style="width: auto;">
                <div class="card" style="height: 780px;overflow:hidden;">
                    <div style="display: flex; float: right;">
                        <button class="close" ng-click="rotate=rotate+90">
                    <span style="font-size: 23px;padding-right: 10px;padding-top: 4px;"
                          class="glyphicon glyphicon-repeat"></span>
                        </button>
                        <button style="font-size: 45px;padding-right: 10px;" type="button" class="close" data-dismiss="modal" >
                            &times;
                        </button>
                    </div>
                    <div class="body">
                        <img ng-src="../../api/home/showImg/{{FILEID}}"
                             style="transform:rotate({{rotate}}deg);-webkit-transform:rotate({{rotate}}deg);-moz-transform:rotate({{rotate}}deg);height: 750px"
                             ng-click="rotate=rotate+90"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
